﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoMergeWCFClient
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("AutoMerge WCF service test.");
            var client = new AutoMergeWCFClient.ServiceRef.ServiceClient();
            var sourceText = new[] {"First line", "Second Line", "Third line"};
            var changedText1 = new[] { "First line1", "Second Line" };
            var changedText2 = new[] { "First line2", "Second Line", "Third line2" };
            var resultText = client.MergeChangedTexts(sourceText, new string[][]{changedText1, changedText2});
            resultText.ToList().ForEach(x => Console.WriteLine(x));
            Console.ReadLine();

        }
    }
}
